module(..., package.seeall)

-- 485设备类型
DEV_TYPE = "NONE"
-- 485设备地址码
DEV_ADDR = "01"
-- 485设备波特率
DEV_BAUD = 9600
-- 485采样间隔，秒
DEV_TIME = 60
-- 离线缓存数据长度限制
DEV_CACHE = 6000
-- 485设备校验位
DEV_PARITY = uart.PAR_NONE

-- 485子设备配置
DEV_SUB_ADDR = {  }
DEV_SUB_PRODUCT = ""
DEV_SUB_TYPE = {  }
DEV_SUB_BAUD = 9600
DEV_SUB_PARITY = uart.PAR_NONE
DEV_SUB_TAG = ""

-- 阿里云配置信息
ALI_DEVICE_SECRET = ""
ALI_DEVICE_IOTID = ""

YALI_DEVICE_CLIENTID = ""
YALI_DEVICE_TOKEN = ""

HW_TOKEN = ""
HW_REGISTER = 0

HW_KEY = ""

DEV_ADD = false

RANDOM_NUM = 0

-- 菜单密码
PASSWORD = "1001"

-- 风机电流倍率
FAN_RATE = {}
-- 风机感应电流
FAN_IND_CUR = 100
-- 风机正常运行电流
FAN_NOR_CUR = {}
-- 风机欠流电流
FAN_UNDER_CUR = {}
-- 风机过流电流
FAN_OVER_CUR = {}

-- 高温报警
TEMP_OVER = 30
-- 低温报警
TEMP_UNDER = 19
-- 温度报警状态
TEMP_STATE = nil

-- 湿度上限报警
HUM_OVER = 98
-- 湿度下限报警
HUM_UNDER = 30
-- 湿度报警状态
HUM_STATE = nil

-- 二氧化碳报警
CO2_OVER = 1800
-- 二氧化碳报警状态
CO2_STATE = nil

-- 氨气报警
NH3_OVER = 0
-- 氨气报警状态
NH3_STATE = nil

-- 断电状态
POWER_STATE = true

SIM_STATE = ""
SIM_USE_DATA = 0
SIM_LAST_DATA = 0
SIM_TIME = ""
SIM_STATUS = "未知卡"
SIM_PLAN = ""